package com.project.controller;

import com.project.bean.DeptBean;
import com.project.service.IDeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author(王思翰)
 * @Description(类的描述)
 * @Date(创建时间) 2021/7/23 14:24
 */
@RestController
@RequestMapping("dept")
public class DeptController {
    @Autowired
    private IDeptService service;

    @RequestMapping("findAll")
    public List<DeptBean> findAll(){
        return service.findAll();
    }
}
